﻿<Window
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:LayoutPlanning.Views"
             xmlns:controls="clr-namespace:LayoutPlanning.Controls" x:Class="LayoutPlanning.Views.ChooseScale"
             mc:Ignorable="d" Height="119.64" Width="168.034" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow" DataContext="{Binding RelativeSource={RelativeSource Self}}"
             >
    <Grid  >

        <controls:SpinLogControl Value="{Binding Scale}"  Minimum="0.01" Margin="10,10,0,0"  Style="{StaticResource SpinLogStyle}" MinHeight="27" VerticalAlignment="Top" HorizontalAlignment="Left" MinWidth="96" >
            <TextBox Text="{Binding Scale,StringFormat=0.##, FallbackValue=2}" BorderThickness="0" HorizontalContentAlignment="Right"/>
        </controls:SpinLogControl>
        <Button x:Name="button" Click="Button_OnClick" Content="Set" HorizontalAlignment="Left" Margin="10,59,0,0" VerticalAlignment="Top" Width="75"/>

    </Grid>
</Window>
